package com.chefu.common.net.result.data;

/**
 * Created by Administrator on 2016/8/11 0011.
 */
public class HttpResult<T> {


    private String result;
    private String message;
    private int code;

    private T listData;

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }



    public HttpResult() {

    }

    public T getListData() {
        return listData;
    }

    public void setListData(T listData) {
        this.listData = listData;
    }

    public HttpResult(String result, String message, int code, T listData) {
        this.result = result;
        this.message = message;
        this.code = code;
        this.listData = listData;
    }

    @Override
    public String toString() {
        return "HttpResult{" +
                "result='" + result + '\'' +
                ", message='" + message + '\'' +
                ", code=" + code +
                ", listData=" + listData +
                '}';
    }
}
